home *** CD-ROM | disk | FTP | other *** search
- %%BeginFile: adobe_psp_level1_basicimages
- %%Copyright: Copyright 1990-1993 Adobe Systems Incorporated. All Rights Reserved.
- /$i false def
- /flipinvert
- statusdict begin
- version cvr 47.0 lt
- end
- def
- /iw Z
- /ih Z
- /im_save Z
- /setupimageproc Z
- /polarity Z
- /smoothflag Z
- /$z Z
- /bpc Z
- /smooth_moredata Z
- /datatype Z
- /:f
- {
- /im_save save store
- /datatype xs
- $i flipinvert
- and
- xor
- /polarity xs
- /smoothflag xs
- :T
- scale
- /$z exch string store
- /bpc xs
- /ih xs
- /iw xs
- /smoothflag
- smoothflag
- bpc 1 eq and
- smoothflag and
- userdict/sc_smooth known and
- vmstatus pop exch pop iw 3 mul sub 1000 gt and
- iw 4 mul 7 add 8 idiv 4 mul 65535 le and
- store
- smoothflag{
- iw
- ih
- $z
- iw 7 add 8 idiv 4 mul string
- iw 4 mul 7 add 8 idiv 4 mul string
- true
- false
- sc_initsmooth
- /iw iw 4 mul store
- /ih ih 4 mul store
- }if
- /setupimageproc datatype 0 eq datatype 1 eq or{
- smoothflag{
- {
- [
- /smooth_moredata cvx[
- currentfile
- $z
- {readstring readhexstring}datatype get
- /pop cvx
- ]cvx[
- $z
- ]cvx/ifelse cvx
- /sc_smooth cvx
- /smooth_moredata/exch cvx/store cvx
- ]cvx bind
- /smooth_moredata true store
- dup exec pop dup exec pop
- }
- }{
- {
- [
- currentfile
- $z
- {readstring readhexstring}datatype get
- /pop cvx
- ]cvx bind
- }
- }ifelse
- }{
- (error, can't use level2 data acquisition procs for level1)print flush stop
- }ifelse
- store
- }bd
- /:j{im_save restore}bd
- /:g
- {
- 1 setgray
- 0 0 1 1 rF
- 0 setgray
- iw ih polarity[iw 0 0 ih 0 0]setupimageproc
- imagemask
- }bd
- /:h
- {
- setrgbcolor
- 0 0 1 1 rF
- setrgbcolor
- iw ih polarity[iw 0 0 ih 0 0]setupimageproc
- imagemask
- }bd
- /:i
- {
- setrgbcolor
- iw ih polarity[iw 0 0 ih 0 0]setupimageproc
- imagemask
- }bd
- %%EndFile
-